how to solve permutation

welcome to shbcf.ru